<%@taglib uri="http://www.springframework.org/tags/form" prefix="form"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
    <title>Spring MVC Form Handling</title>
<style>
.error {
color: #ff0000;
font-style: italic;
}
</style>
</head>
<body>

<h2>Car Information</h2>

<form:form method="POST" modelAttribute="addcar" action="/logbook/addcar">
	<table>
    	<tr>
        	<td><form:label path="name">Name</form:label></td>
        	<td><form:input path="name" /><form:errors path="name" cssClass="error" /></td>
    	</tr>
    	<tr>
        	<td colspan="2">
            	<input type="submit" value="Submit"/>
        	</td>
    	</tr>
</table>  
</form:form>

</body>
</html>